
<nz-card   nzTitle="岗位设置" [nzExtra]="extraTemplate">
  <nz-table #basicTable [nzData]="rolelist">
    <thead>
    <tr>
      <th>ID</th>
      <th>名称</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>{{data.rolegroupid}}</td>
      <td>{{data.name}}</td>

      <td>


        <button nz-button nzType="primary"  (click)="toCdedit(data.rolegroupid)">菜单授权</button>
        <!--<nz-divider nzType="vertical"></nz-divider>-->
        &nbsp;
        <button nz-button nzType="primary" (click)="update(data.rolegroupid)">修改</button>
        &nbsp;
        <button nz-button nzType="danger" (click)="delete(data.rolegroupid)">删除</button>

      </td>
    </tr>
    </tbody>
  </nz-table>
</nz-card>
<ng-template #extraTemplate>
  <button nz-button nzType="primary"(click)="add()">新增</button>
</ng-template>
